Juri Linkov [Wed, 14 Nov 2018 00:14:52 +0000 (02:14 +0200)]
Support VC revisions in diff-goto-source (bug#33319)
* lisp/vc/diff-mode.el (diff-vc-revisions): New defvar.
(diff-find-source-location): Call vc-find-revision for
non-nil values of 'other', diff-vc-backend, diff-vc-revisions.
* lisp/vc/vc.el (vc-diff-internal): Set buffer-local
diff-vc-revisions to the list of used revisions.
* doc/emacs/files.texi (Diff Mode): Update diff-goto-source
for VC-related prefix argument.
Eli Zaretskii [Tue, 13 Nov 2018 20:01:57 +0000 (22:01 +0200)]
Fix recent change in fileio.c
* src/fileio.c (get_homedir) [WINDOWSNT]: Convert $HOME to UTF-8.
(Fexpand_file_name): Don't convert it here.
Glenn Morris [Tue, 13 Nov 2018 19:47:35 +0000 (14:47 -0500)]
No need to pass absolute program name to call-process
* lisp/doc-view.el (doc-view-revert-buffer):
* lisp/net/eudcb-mab.el (eudc-mab-query-internal):
Remove superfluous executable-find.
Paul Eggert [Tue, 13 Nov 2018 18:56:26 +0000 (10:56 -0800)]
Update from Gnulib
This incorporates:
2018-11-03 nstrftime: simplify test for mktime failure
2018-11-02 gnulib-common.m4: port _Noreturn to C++
2018-10-22 std-gnu11: Support Autoconf versions < 2.64
2018-10-22 Assume Autoconf >= 2.63
2018-10-16 Remove support for Ultrix
2018-10-16 getloadavg: Remove support for ConvexOS
2018-10-16 getloadavg: Remove support for Sony NEWS
2018-10-16 Remove support for Dynix/ptx
2018-10-16 fsusage: Remove support for AIX 3
2018-10-16 fsusage, stat-size, getloadavg: Remove support for AIX PS/2
2018-10-16 getloadavg: Remove support for HP-UX on m68k
2018-10-16 fsusage, mountlist: Remove support for DolphinOS
2018-10-16 getloadavg: Remove support for Alliant FX/2800
2018-10-16 getloadavg: Remove support for tek4300
2018-10-16 getloadavg: Remove support for Ardent
* build-aux/config.guess, build-aux/config.sub, lib/_Noreturn.h:
* lib/fsusage.c, lib/getgroups.c, lib/getloadavg.c:
* lib/nstrftime.c, lib/time.in.h, m4/errno_h.m4:
* m4/fsusage.m4, m4/getgroups.m4, m4/gnulib-common.m4, m4/longlong.m4:
* m4/std-gnu11.m4, m4/stdint.m4:
Copy from Gnulib.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate:
Glenn Morris [Tue, 13 Nov 2018 18:15:39 +0000 (13:15 -0500)]
Root emacsclient no longer connects to non-root sockets
* lib-src/emacsclient.c (set_local_socket): Don't ignore socket
ownership when run by root.
Ref: http://lists.gnu.org/r/emacs-devel/2018-11/msg00019.html
Eli Zaretskii [Tue, 13 Nov 2018 17:46:08 +0000 (19:46 +0200)]
Avoid byte-compilation warning in emacsbug.el
* lisp/mail/emacsbug.el (w32--os-description): Declare it, to
avoid byte-compilation warning. Reported by Live System User
<nyc4bos@aol.com>.
Paul Eggert [Tue, 13 Nov 2018 17:29:14 +0000 (09:29 -0800)]
Act like POSIX sh if $HOME is relative
POSIX says sh ~/foo should act like $HOME/foo even if $HOME is
relative, so be consistent with that (Bug#33255).
* admin/merge-gnulib (GNULIB_MODULES): Add dosname.
* src/buffer.c (init_buffer): Use emacs_wd to get
initial working directory with slash appended if needed.
(default-directory): Say it must be absolute.
* src/emacs.c (emacs_wd): New global variable.
(init_cmdargs): Dir arg is now char const *.
(main): Set emacs_wd.
* src/emacs.c (main) [NS_IMPL_COCOA]:
* src/fileio.c (Fexpand_file_name):
Use get_homedir instead of egetenv ("HOME").
* src/fileio.c: Include dosname.h, for IS_ABSOLUTE_FILE_NAME.
(splice_dir_file, get_homedir): New functions.
* src/xrdb.c (gethomedir): Remove. All callers changed
to use get_homedir and splice_dir_file.
* test/src/fileio-tests.el (fileio-tests--relative-HOME): New test.
Stefan Monnier [Tue, 13 Nov 2018 14:03:12 +0000 (09:03 -0500)]
* lisp/files.el: Justify binding of read-circle with comments
Noam Postavsky [Tue, 13 Nov 2018 13:25:35 +0000 (08:25 -0500)]
Fix build fail on files.el change (Bug#32352)
* lisp/files.el (dir-locals-read-from-dir): Reduce scope of
`read-circle' let-binding to go around the `read' call only.
Otherwise it can interfere with loading of files which use the
circular read syntax (e.g., executing the setf expression in
`dir-locals-set-class-variables' may require loading gv.elc).
Michael Albinus [Tue, 13 Nov 2018 10:04:20 +0000 (11:04 +0100)]
; Cosmetic changes in etc/NEWS
Glenn Morris [Mon, 12 Nov 2018 17:38:27 +0000 (09:38 -0800)]
; Merge from origin/emacs-26
The following commit was skipped:
e3b3683 (origin/emacs-26) Bump Emacs version to 26.1.90
Glenn Morris [Mon, 12 Nov 2018 17:38:27 +0000 (09:38 -0800)]
Merge from origin/emacs-26
189c49e * etc/AUTHORS: Update.
9723c21 ; ChangeLog.3 update
Glenn Morris [Mon, 12 Nov 2018 17:38:27 +0000 (09:38 -0800)]
; Merge from origin/emacs-26
The following commit was skipped:
1d79c2e Work around dumping bug on GNU/Linux ppc64le
Glenn Morris [Mon, 12 Nov 2018 17:38:27 +0000 (09:38 -0800)]
Merge from origin/emacs-26
913c001 * lisp/files.el (write-file): Clarify the doc string. (Bug#3...
d614b84 Fix typos in midnight.el
8c2778a Improve documentation of 'move-file-to-trash'
c7b8a51 ; * doc/lispref/functions.texi (Anonymous Functions): Fix typo.
92296de * src/data.c (Ftype_of): xwidget objects are possible! (bug#3...
a3242cc Improve documentation of Diff mode
39e85a0 Note that lex bound lambda forms are not self-quoting (Bug#33...
fa605f2 Rewrite buffer display related doc-strings and doc
aa55659 Fix call to GlobalMemoryStatusEx in w32.c
# Conflicts:
# doc/emacs/files.texi
# src/data.c
Nicolas Petton [Mon, 12 Nov 2018 15:45:23 +0000 (16:45 +0100)]
Bump Emacs version to 26.1.90
* README:
* configure.ac:
* msdos/sed2v2.inp:
* nt/README.W32: Bump Emacs version to 26.1.90.
Nicolas Petton [Mon, 12 Nov 2018 15:43:30 +0000 (16:43 +0100)]
* etc/AUTHORS: Update.
Nicolas Petton [Mon, 12 Nov 2018 15:42:49 +0000 (16:42 +0100)]
; ChangeLog.3 update
Sam Steingold [Mon, 12 Nov 2018 14:10:11 +0000 (09:10 -0500)]
maybe_disable_address_randomization always returns "int argc"
maybe_disable_address_randomization needs a consistent signature
regardless of HAVE_PERSONALITY_ADDR_NO_RANDOMIZE.
Paul Eggert [Mon, 12 Nov 2018 06:34:46 +0000 (22:34 -0800)]
Work around dumping bug on GNU/Linux ppc64le
Problem reported by Thomas Fitzsimmons (Bug#33174).
Do not merge to master, as we have a better fix there.
* src/Makefile.in (emacs$(EXEEXT)):
(bootstrap-emacs$(EXEEXT)):
Unset EMACS_HEAP_EXEC before invoking temacs.
Paul Eggert [Mon, 12 Nov 2018 06:18:47 +0000 (22:18 -0800)]
Fix dumping on GNU/Linux ppc64le
Problem reported by Thomas Fitzsimmons (Bug#33174).
* src/emacs.c (main): Adjust to sysdep.c changes.
* src/sysdep.c (exec_personality): New static var.
(disable_address_randomization): Remove, replacing with ...
(maybe_disable_address_randomization): ... this new function.
Do not set or use an environment variable; use a command-line
argument instead, and set the new static var. Migrate the emacs.c
personality-change code to here, where it belongs.
(emacs_exec_file): Simplify by using new static var.
Paul Eggert [Sun, 11 Nov 2018 18:01:40 +0000 (10:01 -0800)]
Pacify gcc -Wmaybe-uninitialized without X11-XCB
I ran into this problem on Ubuntu 18.04.1 LTS.
* src/xterm.c (get_current_wm_state) [!USE_XCB]:
Mark reply_data as UNINIT here too.
Paul Eggert [Sun, 11 Nov 2018 17:58:29 +0000 (09:58 -0800)]
Pacify gcc -Wunused-macros in older GnuTLS
I ran into this problem on Ubuntu 18.04.1 LTS.
* src/gnutls.c (HAVE_GNUTLS_CIPHER_GET_IV_SIZE)
(HAVE_GNUTLS_CIPHER_GET_TAG_SIZE, HAVE_GNUTLS_DIGEST_LIST):
New macros. This uses the same style as the other
macros that depend on GnuTLS version, as opposed to trying
to do things a bit more cleverly.
(gnutls_cipher_get_iv_size, gnutls_cipher_get_tag_size)
(gnutls_digest_list, gnutls_digest_get_name):
Define these macros only if they will be used.
Simen Heggestøyl [Sun, 11 Nov 2018 14:18:53 +0000 (15:18 +0100)]
Add masking module to CSS property list
* lisp/textmodes/css-mode.el (css-property-alist)
(css-value-class-alist): Add properties and value classes from CSS
Masking Module.
Eli Zaretskii [Sun, 11 Nov 2018 16:17:51 +0000 (18:17 +0200)]
* lisp/files.el (write-file): Clarify the doc string. (Bug#33339)
Simen Heggestøyl [Sun, 11 Nov 2018 09:21:30 +0000 (10:21 +0100)]
Fix typos in midnight.el
* lisp/midnight.el (clean-buffer-list-delay-general)
(clean-buffer-list-kill-regexps)
(clean-buffer-list-kill-buffer-names): Fix docstring typos.
Glenn Morris [Sun, 11 Nov 2018 03:15:59 +0000 (19:15 -0800)]
; * test/src/editfns-tests.el (test-group-name): Ignore getent errors.
Glenn Morris [Sun, 11 Nov 2018 03:13:20 +0000 (19:13 -0800)]
* test/src/editfns-tests.el (test-group-name): Improve test.
Make more portable and hopefully more robust using getent. (Bug#33195)
Eli Zaretskii [Sat, 10 Nov 2018 20:22:39 +0000 (22:22 +0200)]
Improve documentation of 'move-file-to-trash'
* doc/emacs/files.texi (Misc File Ops): Index
move-file-to-trash. State that the way to restore trashed
files is system-dependent.
Eli Zaretskii [Sat, 10 Nov 2018 20:14:42 +0000 (22:14 +0200)]
Make 'move-file-to-trash' behave according to the documentation
* lisp/files.el (move-file-to-trash): Behave like the doc
string says: check whether 'system-move-file-to-trash' is
defined before testing that 'trash-directory' is non-nil.
(Bug#33335)
Charles A. Roelli [Sat, 10 Nov 2018 19:32:36 +0000 (20:32 +0100)]
; * doc/lispref/functions.texi (Anonymous Functions): Fix typo.
Glenn Morris [Sat, 10 Nov 2018 18:37:47 +0000 (10:37 -0800)]
* test/src/editfns-tests.el (test-group-name): Small fix.
Do not assume user 1000 has group name = user name.
Paul Eggert [Sat, 10 Nov 2018 17:00:43 +0000 (09:00 -0800)]
Dissociate controlling tty better on Darwin
* src/process.c (dissociate_controlling_tty): New function.
(create_process): Use it to dissociate controlling tty if setsid
fails, which happens on Darwin after a vfork (Bug#33154).
Do this on all platforms, not just on Darwin, as a similar
problem is plausible elsewhere.
* src/callproc.c (call_process): Use the new function here, too,
for consistency and to avoid duplicate code.
Michael Albinus [Sat, 10 Nov 2018 15:03:12 +0000 (16:03 +0100)]
Provide branch information for both Emacs and Tramp (Bug#33328)
* doc/lispref/intro.texi (Version Info):
Document `emacs-repository-version' and `emacs-repository-branch'.
* etc/NEWS: Mention `emacs-repository-branch'.
* lisp/loadup.el: Initialize `emacs-repository-branch'.
* lisp/version.el (emacs-repository-branch): New variable.
(emacs-repository-branch-git, emacs-repository-get-branch):
New defuns.
* lisp/mail/emacsbug.el (report-emacs-bug):
Insert `emacs-repository-branch'.
* lisp/net/tramp.el (tramp-get-local-gid):
Use `group-name' if available.
(tramp-debug-message):
* lisp/net/tramp-cmds.el (tramp-bug): Report also
`tramp-repository-branch' and `tramp-repository-version'.
* lisp/net/trampver.el (tramp-repository-branch)
(tramp-repository-version): New defconst.
(tramp-repository-get-version): Remove.
Michael Albinus [Sat, 10 Nov 2018 14:55:23 +0000 (15:55 +0100)]
* lisp/net/tramp.el (tramp-get-local-gid): Use `group-name' if available.
Allen Li [Thu, 25 Oct 2018 02:48:15 +0000 (20:48 -0600)]
Add setter for 'xref-marker-ring-length'
* lisp/progmodes/xref.el (xref-marker-ring-length): Add setter.
* etc/NEWS: Document last change. (Bug#32849)
Allen Li [Thu, 25 Oct 2018 02:44:01 +0000 (20:44 -0600)]
Add 'ring-resize' function
* lisp/emacs-lisp/ring.el (ring-resize): New function. (Bug#32849)
* doc/lispref/sequences.texi (Rings): Document new function 'ring-resize'.
* etc/NEWS: Document new function 'ring-resize'.
* test/lisp/emacs-lisp/ring-tests.el (ring-test-ring-resize): New tests.
Eli Zaretskii [Sat, 10 Nov 2018 09:32:14 +0000 (11:32 +0200)]
Fix last commit
* doc/lispref/os.texi (User Identification): Fix function name
of 'group-name'.
Eli Zaretskii [Sat, 10 Nov 2018 09:16:17 +0000 (11:16 +0200)]
Fix last change
* src/editfns.c (Fgroup_name): Fix the doc string. Move
closer to the "group" functions.
* src/w32.c (getgrgid): Return NULL if GID is not the group ID
of the user of this Emacs session
* test/src/editfns-tests.el (test-group-name): Rename from
'group-name'. Add tests for non-Posix hosts. Test error when
the argument to group-name is invalid.
* etc/NEWS: Fix wording of last added entry.
Jules Tamagnan [Tue, 30 Oct 2018 17:22:03 +0000 (10:22 -0700)]
src/editfns.c (group-name): New function.
Stefan Monnier [Fri, 9 Nov 2018 14:51:54 +0000 (09:51 -0500)]
* src/data.c (Ftype_of): xwidget objects are possible! (bug#33294)
(syms_of_data): Define Qwidget here.
* src/xwidget.c (syms_of_xwidget): Instead of here.
Eli Zaretskii [Fri, 9 Nov 2018 09:22:46 +0000 (11:22 +0200)]
Improve doc strings generated by 'easy-mmode-define-navigation'
* lisp/emacs-lisp/easy-mmode.el
(easy-mmode-define-navigation): Include the documentation of
prefix argument in the generated doc string.
Eli Zaretskii [Fri, 9 Nov 2018 09:13:32 +0000 (11:13 +0200)]
Improve documentation of Diff mode
* doc/emacs/files.texi (Diff Mode): Document the effect of
prefix argument on the Diff mode's commands. Document
'diff-jump-to-old-file'.
Noam Postavsky [Mon, 29 Oct 2018 23:01:07 +0000 (19:01 -0400)]
Note that lex bound lambda forms are not self-quoting (Bug#33199)
* doc/lispref/functions.texi (Anonymous Functions):
* lisp/subr.el (lambda): Note that under lexical binding a lambda form
yields a closure object (Bug#33199).
Pierre-Yves Luyten [Sat, 13 Oct 2018 20:06:41 +0000 (22:06 +0200)]
Add functions to open a bookmark in another frame
* lisp/bookmark.el (bookmark-jump-other-frame): New function.
Bind in bookmark-map.
(bookmark-bmenu-other-frame): New function.
Bind in bookmark-bmenu-mode-map.
Patch applied by Karl Fogel.
Juri Linkov [Thu, 8 Nov 2018 21:27:49 +0000 (23:27 +0200)]
* lisp/windmove.el (windmove-create-window): New defcustom (bug#32790).
(windmove-do-window-select): Use it.
Martin Rudalics [Thu, 8 Nov 2018 19:20:13 +0000 (20:20 +0100)]
Rewrite buffer display related doc-strings and doc
* lisp/window.el (display-buffer-overriding-action)
(display-buffer-alist, display-buffer-base-action)
(display-buffer-fallback-action, display-buffer-assq-regexp)
(display-buffer): Rewrite doc-strings using suggestions by
Alan Mackenzie <acm@muc.de>.
(display-buffer-use-some-frame): Adjust doc-string and
reformat code.
* doc/lispref/windows.texi (Buffer Display Action Alists):
Make docs on 'window-height', 'window-width' and
'preserve-size' entries more accurate.
Michael Albinus [Thu, 8 Nov 2018 11:48:54 +0000 (12:48 +0100)]
* doc/misc/tramp.texi (Password handling): Explain Ange FTP case.
Michael Albinus [Thu, 8 Nov 2018 11:21:48 +0000 (12:21 +0100)]
Get rid of own netrc parsing implementation in Tramp
* lisp/net/tramp.el (tramp-parse-netrc): Reimplement, using
`netrc-parse'.
(tramp-parse-netrc-group): Remove.
Juri Linkov [Wed, 7 Nov 2018 22:52:50 +0000 (00:52 +0200)]
Support VC single file operations from Dired (bug#32596).
* lisp/vc/vc.el (vc-ensure-vc-buffer): Use dired-get-filename for dired-mode.
Move error-checking outside of the last branch of cond.
(vc-dired-deduce-fileset): Remove unused error signaling.
Juri Linkov [Wed, 7 Nov 2018 22:42:28 +0000 (00:42 +0200)]
* lisp/vc/log-view.el: Better error handling (bug#33295).
* lisp/vc/log-view.el (log-view-find-revision)
(log-view-annotate-version): Add condition to signal an error
when log-view-vc-fileset contains a directory.
Use user-error instead of error.
* lisp/dired.el (dired-get-file-for-visit):
* lisp/locate.el (locate-do-setup):
Use user-error instead of error.
Juri Linkov [Wed, 7 Nov 2018 22:33:05 +0000 (00:33 +0200)]
Advertise new hi-lock 'M-s h' key prefix in lisp/bindings.el
https://lists.gnu.org/archive/html/emacs-devel/2015-07/msg00104.html
Juri Linkov [Wed, 7 Nov 2018 22:27:58 +0000 (00:27 +0200)]
* lisp/files-x.el (modify-dir-local-variable): Use assoc-delete-all
instead of assq-delete-all for cases when mode is a subdirectory name.
(dir-locals-to-string): Call pp-to-string and string-trim-right
on values. (Bug#32817)
Juri Linkov [Wed, 7 Nov 2018 22:20:16 +0000 (00:20 +0200)]
* lisp/window.el (window-state-put): Create a new window
to replace the existing one on the same frame in case
when WINDOW is not live. (Bug#32850)
* doc/lispref/windows.texi (Window Configurations):
Describe changes related to WINDOW arg of window-state-put.
Michael Albinus [Wed, 7 Nov 2018 15:07:25 +0000 (16:07 +0100)]
* lisp/net/tramp.el (tramp-get-debug-buffer): Fix error in setting local map.
Eli Zaretskii [Tue, 6 Nov 2018 15:49:58 +0000 (17:49 +0200)]
Fix call to GlobalMemoryStatusEx in w32.c
* src/w32.c (system_process_attributes): Initialize the size
of the data structure passed to GlobalMemoryStatusEx,
otherwise it fails.
Michael Albinus [Tue, 6 Nov 2018 14:48:05 +0000 (15:48 +0100)]
Handle also port and domain in Tramp proxy definitions
* doc/misc/tramp.texi (Multi-hops): Exclude ports and domains from
pattern expansion.
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections):
Remove ad-hoc proxies.
* lisp/net/tramp-sh.el (tramp-compute-multi-hops): Handle also
port and domain in the proxy. Propertize ad-hoc proxies.
* lisp/net/tramp.el (tramp-default-proxies-alist): Adapt docstring.
* test/lisp/net/tramp-tests.el (tramp-test02-file-name-dissect)
(tramp-test02-file-name-dissect-simplified)
(tramp-test02-file-name-dissect-separate): Extend tests.
Juri Linkov [Mon, 5 Nov 2018 21:11:30 +0000 (23:11 +0200)]
Support lazy-highlight-buffer in Info (bug#29321, bug#29360).
* lisp/isearch.el (isearch-lazy-highlight-point-min)
(isearch-lazy-highlight-point-max): New variables.
(isearch-lazy-highlight-new-loop): When lazy-highlight-buffer is
non-nil, compare (point-min) with isearch-lazy-highlight-point-min,
and (point-max) with isearch-lazy-highlight-point-max, for buffers
like Info where narrowing changes the values point-min and point-max.
Juri Linkov [Mon, 5 Nov 2018 20:57:10 +0000 (22:57 +0200)]
* lisp/image-mode.el (image--imagemagick-wanted-p): Check for nil filename.
(Bug#33241)
Glenn Morris [Sun, 4 Nov 2018 17:45:59 +0000 (09:45 -0800)]
* src/xfaces.c (face_at_buffer_position): Adapt lookup_basic_face call.
Glenn Morris [Sun, 4 Nov 2018 17:37:03 +0000 (09:37 -0800)]
Merge from origin/emacs-26
6937c35 (origin/emacs-26) Improve recent changes in documentation of ...
c04b48c Rewrite documentation of buffer display
7cadb32 ; * doc/lispref/control.texi (pcase Macro): Fix another typo.
963f1d9 ; * doc/lispref/control.texi (pcase Macro): Fix a typo.
e824c91 Improve documentation of destructuring-binding macros
Glenn Morris [Sun, 4 Nov 2018 17:37:03 +0000 (09:37 -0800)]
; Merge from origin/emacs-26
The following commit was skipped:
74bc0e1 Avoid byte compilation warning in rcirc.el
Glenn Morris [Sun, 4 Nov 2018 17:37:03 +0000 (09:37 -0800)]
Merge from origin/emacs-26
bd1d617 Avoid race in rcirc process filter (bug#33145)
88ef31a Avoid file-name errors when viewing PDF from Gnus
c939042 Avoid crashes with remapped default face in Org mode
97660fa Doc fix for checkdoc-continue
96f055b Fix a typo in autoload.el
Glenn Morris [Sun, 4 Nov 2018 17:37:03 +0000 (09:37 -0800)]
; Merge from origin/emacs-26
The following commit was skipped:
d53a2b6 ; Auto-commit of loaddefs files.
Glenn Morris [Sun, 4 Nov 2018 17:37:03 +0000 (09:37 -0800)]
Merge from origin/emacs-26
9962cf9 * doc/lispref/control.texi (Destructuring patterns): New subs...
Eli Zaretskii [Sun, 4 Nov 2018 17:08:00 +0000 (19:08 +0200)]
Improve recent changes in documentation of window handling
* doc/lispref/windows.texi (Displaying Buffers)
(Choosing Window, Buffer Display Action Functions)
(Buffer Display Action Alists, Choosing Window Options)
(Precedence of Action Functions, The Zen of Buffer Display):
Fix wording, punctuation, and markup. Remove redundant
cross-references.
* doc/emacs/windows.texi (Window Choice, Temporary Displays):
Fix wording and punctuation.
Eli Zaretskii [Sun, 4 Nov 2018 14:01:09 +0000 (16:01 +0200)]
A further fix for locally remapped fringe face
* src/xdisp.c (expose_window): Temporarily switch to the
window's buffer, in case the fringe face was remapped locally
in that buffer. (Bug#33244)
Michael Albinus [Sun, 4 Nov 2018 11:51:39 +0000 (12:51 +0100)]
Fix Bug#33194
* lisp/autorevert.el (auto-revert-notify-add-watch):
Handle buffers with same descriptor properly.
(auto-revert-notify-handler): Handle all buffers with same
descriptor. (Bug#33194)
* lisp/filenotify.el (file-notify-callback): Simplify.
Martin Rudalics [Sun, 4 Nov 2018 08:15:13 +0000 (09:15 +0100)]
Rewrite documentation of buffer display
* doc/emacs/windows.texi (Window Choice): Rewrite, replacing
references to older buffer display options with references to
and examples of buffer display actions.
(Temporary Displays): Rewrite display of *Completions*
example.
* doc/lispref/elisp.texi (Top): New Windows section
'Displaying Buffers'.
* doc/lispref/frames.texi (Child Frames): Adjust cross
reference.
* doc/lispref/windows.texi (Windows): New section 'Displaying
Buffers'. Move sections 'Choosing Window', 'Display Action
Functions' and 'Choosing Window Options' there and adjust
namings. Preferably write 'Buffer Display Action' instead of
'Display Action'. More consistently use @w{} to make key
binding specifications unsplittable.
(Displaying Buffers): New section.
(Choosing Window): Make it a subsection of 'Displaying
Buffers'. More explicitly describe how 'display-buffer'
compiles its list of action functions and the action alist.
(Buffer Display Action Functions): Rename from 'Display Action
Functions', make it a subsection of 'Displaying Buffers' and
rewrite it. Elide more detailed descriptions of action alist
entries; these are now in the new section 'Buffer Display
Action Functions'. Remove example.
(Buffer Display Action Alists): New subsection of 'Displaying
Buffers' giving a comprehensive description of recognized
action alist entries with appropriate indexing. Contents were
partially moved here from the old 'Display Action Functions'
section.
(Choosing Window Options): Make it a subsection of 'Displaying
Buffers'. Add examples of how to rewrite old buffer display
options with the help of buffer display actions.
(Precedence of Action Functions): New subsection of
'Displaying Buffers' explaining the execution order of action
functions with the help of a detailed example.
(The Zen of Buffer Display): New subsection of 'Displaying
Buffers' supplying guidelines on how to write and use buffer
display actions with examples.
(Side Windows, Displaying Buffers in Side Windows)
(Frame Layouts with Side Windows, Atomic Windows): Update
references to the 'Displaying Buffers' subsections.
Paul Eggert [Sat, 3 Nov 2018 20:11:26 +0000 (13:11 -0700)]
Improve time error reporting
* src/timefns.c (emacs_mktime_z): Remove; no longer needed.
(time_error): New function, replacing invalid_time.
All callers changed.
(decode_float_time, decode_ticks_hz, decode_time_components):
Return an error number instead of merely a boolean.
All callers changed.
(decode_lisp_time): Signal an error based on the error number,
instead of merely returning a boolean to the caller.
All callers changed.
(format_time_string, Fdecode_time, Fencode_time)
(Fcurrent_time_string):
Do not assume that a failure of a system time function
must be due to time overflow.
(Fencode_time): Don't report an error merely because mktime
returned ((time_t) -1), as that may be a valid time_t value.
Use a simpler error check. See:
https://www.sourceware.org/ml/libc-alpha/2018-11/msg00062.html
Eli Zaretskii [Sat, 3 Nov 2018 17:37:54 +0000 (19:37 +0200)]
; * doc/lispref/control.texi (pcase Macro): Fix another typo.
Eli Zaretskii [Sat, 3 Nov 2018 16:11:29 +0000 (18:11 +0200)]
; * doc/lispref/control.texi (pcase Macro): Fix a typo.
Eli Zaretskii [Sat, 3 Nov 2018 13:11:33 +0000 (15:11 +0200)]
Improve documentation of destructuring-binding macros
* lisp/emacs-lisp/pcase.el (pcase-dolist, pcase-let)
(pcase-let*): Improve the doc strings.
* doc/lispref/sequences.texi (Sequence Functions): Improve
wording and rename arguments of seq-let to be more
descriptive. Add a cross-reference to "Destructuring with
pcase Patterns".
* doc/lispref/control.texi (Pattern-Matching Conditional):
Improve wording and the menu.
(pcase Macro): Incorporate patch suggested by Paul Eggert
<eggert@cs.ucla.edu>. Reformat text.
(Destructuring with pcase Patterns): Rename from
"Destructuring patterns", and improve wording and indexing.
Eli Zaretskii [Sat, 3 Nov 2018 10:39:59 +0000 (12:39 +0200)]
Allow the fringe face to be remapped locally in a buffer
* src/fringe.c (draw_window_fringes): Switch to window's
buffer to get the local value of face-remapping-alist, if
necessary. (Bug#33244)
* src/xfaces.c (syms_of_xfaces) <Qface_remapping_alist>: New
DEFSYM.
David Edmondson [Sun, 28 Oct 2018 03:11:21 +0000 (03:11 +0000)]
Add URL truncation support to rcirc (bug#33043)
Suggested by David Edmondson <dme@dme.org>.
* lisp/net/rcirc.el (rcirc-url-max-length): New user option
controlling extent of URL truncation, defaulting to none.
(rcirc-markup-urls): Use it.
* etc/NEWS: Announce it.
Eli Zaretskii [Sat, 3 Nov 2018 09:01:44 +0000 (11:01 +0200)]
; * etc/NEWS: Fix last change. (Bug#33188)
Pierre Téchoueyres [Wed, 10 Oct 2018 18:08:05 +0000 (20:08 +0200)]
'minor-mode-menu-from-indicator' now display full minor mode.
When there is no menu for a mode, display the mode name after the
indicator instead of just the indicator (which is sometime cryptic).
Ex:
before : SP
now : SP - Smartparens Mode
* etc/NEWS: Add en entry for this new feature.
* lisp/mouse.el (minor-mode-menu-from-indicator): Append the mode name
after the indicator when there is no menu defined by the mode.
Eli Zaretskii [Sat, 3 Nov 2018 08:49:51 +0000 (10:49 +0200)]
Avoid byte compilation warning in rcirc.el
* lisp/net/rcirc.el (rcirc-prompt-start-marker): Move
definition before 1st use to avoild byte-compiler warning.
Basil L. Contovounesios [Thu, 25 Oct 2018 02:35:57 +0000 (03:35 +0100)]
Avoid race in rcirc process filter (bug#33145)
* lisp/net/rcirc.el (rcirc-filter): Clear rcirc-process-output
before processing its constituent lines. Otherwise, if rcirc-filter
runs again before the last rcirc-process-server-response is
finished, the contents of rcirc-process-output could be duplicated.
Eli Zaretskii [Sat, 3 Nov 2018 08:42:22 +0000 (10:42 +0200)]
; * etc/NEWS: Announce feature introduced in last change.
Eric Abrahamsen [Tue, 23 Oct 2018 02:51:37 +0000 (10:51 +0800)]
Allow use of Gnus search groups as notmuch path: search term
* lisp/gnus/nnir.el (nnir-notmuch-filter-group-names-function): New
option governing whether and how to use Gnus' search groups as path:
search terms to notmuch.
(nnir-run-notmuch): Check and possibly use above variable.
(Bug#33122)
Eli Zaretskii [Sat, 3 Nov 2018 08:37:01 +0000 (10:37 +0200)]
; * etc/NEWS: Fix last change.
Daniel Pittman [Tue, 23 Oct 2018 15:24:04 +0000 (11:24 -0400)]
Fix interaction between vc-hg find-file-hook and vc state caching
Bad assumptions in the `vc-hg-find-file-hook' prevented it from
working. This correctly them. (Bug#33129).
2018-10-23 Daniel Pittman <slippycheeze@google.com>
* lisp/vc/vc-hg.el (vc-hg-find-file-hook): This function made two
assumptions about conflicted files that were not accurate,
preventing conflicts in files ever being detected.
The first was that the `vc-state' was cache by the time this was
invoked, which it is not - at least when visiting the file, or
using `vc-refresh-state'.
The second was that a file with the ".orig" extension would be
present, next to the file being visited. This is the default
behavior of Mercurial, but can be overridden by the user.
Since the VC mode-line code will shortly calculate the state for
display, the optimization of testing for the ".orig" file only
delayed this work by a few moments.
Jordan Wilson [Wed, 10 Oct 2018 10:45:57 +0000 (11:45 +0100)]
Avoid file-name errors when viewing PDF from Gnus
* lisp/doc-view.el (doc-view-mode): Run the output file name
through 'convert-standard-filename', to avoid problems with
characters that are not allowed in file names on some
systems. (Bug#32989)
Copyright-paperwork-exempt: yes
Stefan Monnier [Fri, 2 Nov 2018 21:47:11 +0000 (17:47 -0400)]
* lisp/emacs-lisp/syntax.el (syntax-propertize-rules): Allow empty rules
Stefan Monnier [Fri, 2 Nov 2018 20:14:49 +0000 (16:14 -0400)]
* lisp/help-fns.el (describe-symbol): Use help--symbol-completion-table
Stefan Monnier [Fri, 2 Nov 2018 19:00:34 +0000 (15:00 -0400)]
* src/data.c (Ffset): Don't signal gratuitous errors
Eric Abrahamsen [Thu, 1 Nov 2018 23:50:17 +0000 (16:50 -0700)]
Obsolete gnus-correct-length in favor of string-width
* lisp/gnus/gnus-spec.el: Define an obsolete alias.
Stefan Monnier [Fri, 2 Nov 2018 16:07:12 +0000 (12:07 -0400)]
* lisp/progmodes/ruby-mode.el: Cosmetic changes
Remove redundant :groups.
(ruby-font-lock-syntax-table): Delete var.
(ruby-mode): Use font-lock-default's syntax-alist instead.
Eli Zaretskii [Fri, 2 Nov 2018 10:07:47 +0000 (12:07 +0200)]
Avoid crashes with remapped default face in Org mode
* src/xfaces.c (face_at_buffer_position): Look up BASE_FACE_ID
anew if it is not in the frame's face cache. This avoids
crashes when Org mode sets up for a new major mode in embedded
code fragment, and the default face is remapped. (Bug#33222)
Eric Abrahamsen [Thu, 1 Nov 2018 20:21:27 +0000 (13:21 -0700)]
Doc fix for checkdoc-continue
* lisp/emacs-lisp/checkdoc.el (checkdoc-continue): There is no second
optional argument, and the function always starts from point.
Eli Zaretskii [Thu, 1 Nov 2018 18:56:31 +0000 (20:56 +0200)]
Fix a typo in autoload.el
* lisp/emacs-lisp/autoload.el (update-directory-autoloads):
Remove stray backslashes. (Bug#33231)
Stefan Monnier [Thu, 1 Nov 2018 13:00:42 +0000 (09:00 -0400)]
* lisp/progmodes/cc-mode.el: Silence compiler warnings
(c-parse-quotes-before-change, c-parse-quotes-after-change):
Flag unused args according to convention.
Glenn Morris [Thu, 1 Nov 2018 11:24:23 +0000 (07:24 -0400)]
; Auto-commit of loaddefs files.
Glenn Morris [Thu, 1 Nov 2018 10:24:27 +0000 (06:24 -0400)]
; Auto-commit of loaddefs files.
Stefan Monnier [Wed, 31 Oct 2018 19:34:45 +0000 (15:34 -0400)]
* doc/lispref/control.texi (Destructuring patterns): New subsection.
Michael Albinus [Wed, 31 Oct 2018 19:04:04 +0000 (20:04 +0100)]
Remote file name completion is also performed by auth-sources search
* doc/misc/tramp.texi (File name completion): User and host name
completion is also performed by auth-sources search.
* etc/NEWS: Document remote file name completion using auth-sources.
* lisp/net/tramp.el (tramp-completion-use-auth-sources):
New user option.
(tramp-parse-auth-sources): New defun.
(tramp-get-completion-function): Call it.
Glenn Morris [Wed, 31 Oct 2018 14:50:58 +0000 (07:50 -0700)]
; Merge from origin/emacs-26
The following commits were skipped:
c3cf85b (origin/emacs-26) Add regression test for Bug#33014
1ad2903 Refer to bytecode constant vectors (Bug#33014)
Glenn Morris [Wed, 31 Oct 2018 14:50:57 +0000 (07:50 -0700)]
Merge from origin/emacs-26
eb903d8 * lisp/emacs-lisp/pcase.el: Improve docstrings.
86abbb3 * lisp/emacs-lisp/rx.el (rx): Fix typo in doc string. (Bug#3...
ced58d3 Improve doc string of 'call-process'
38f88a7 Document that generic functions cannot be commands
5aeddfa * lisp/mail/rmailsum.el (rmail-summary-output): Add lost word...
10e0fd8 Add index entries for more isearch commands/bindings (Bug#32990)
de28184 * lisp/simple.el (filter-buffer-substring): Clarify doc (Bug#...
d192c16 Fix recent change in lispref/processes.texi.
Stefan Monnier [Wed, 31 Oct 2018 14:16:02 +0000 (10:16 -0400)]
* lisp/emacs-lisp/cl-generic.el: Clarify we can't define commands
(cl--generic-lambda): Warn about the presence of interactive specs.
Gemini Lasswell [Wed, 31 Oct 2018 04:15:51 +0000 (21:15 -0700)]
Add regression test for Bug#33014
Backport from master.
* test/src/eval-tests.el:
(eval-tests-byte-code-being-evaluated-is-protected-from-gc): New test.
(eval-tests-33014-var): New variable.
(eval-tests-33014-func, eval-tests-33014-redefine): New functions.